package cn.tedu.sheep.controller;

import cn.tedu.sheep.common.response.ResultVO;
import cn.tedu.sheep.mapper.SelectLessonMapper;
import cn.tedu.sheep.pojo.vo.SelectLessonVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.nio.channels.SeekableByteChannel;
import java.util.List;

@RestController
@RequestMapping("/sheep/lesson/")
public class SelectLessonController {
    @Autowired(required = false)
    private SelectLessonMapper selectLessonMapper;
    @RequestMapping("selectLesson")
    public ResultVO getSelectLessonClass(){
        List<SelectLessonVo> list = selectLessonMapper.getSelectLessonClass();
        return ResultVO.ok(list);
    }

}
